package cn.xny.basic.query;

public class BaseQuery {

    private Integer currentPage=1;
    private Integer pageSize=5;
    //高级查询的参数
    private String keywork;




    public Integer getBegin() {

        return (this.currentPage-1)*this.pageSize;
    }

    public String getKeywork() {
        return keywork;
    }

    public void setKeywork(String keywork) {
        this.keywork = keywork;
    }

    public Integer getCurrentPage() { return currentPage; }

    public void setCurrentPage(Integer currentPage) { this.currentPage = currentPage; }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }
}

